\hypertarget{classvs_1_1net_1_1_socket_handle}{\section{vs\-:\-:net\-:\-:Socket\-Handle Class Reference}
\label{classvs_1_1net_1_1_socket_handle}\index{vs\-::net\-::\-Socket\-Handle@{vs\-::net\-::\-Socket\-Handle}}
}


Base class for T\-C\-P/\-U\-D\-P stream. This class encapsulates the underlying socket.  




{\ttfamily \#include $<$Socket\-Handle.\-h$>$}

Inheritance diagram for vs\-:\-:net\-:\-:Socket\-Handle\-:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=2.000000cm]{classvs_1_1net_1_1_socket_handle}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hypertarget{classvs_1_1net_1_1_socket_handle_a375fb61b83b114271358255a0acc8afb}{\hyperlink{classvs_1_1net_1_1_socket_handle_a375fb61b83b114271358255a0acc8afb}{Socket\-Handle} (\hyperlink{namespacevs_1_1net_a8cd20dff70902b20f734a7f958cf99b6}{S\-O\-C\-K\-E\-T\-\_\-\-H\-A\-N\-D\-L\-E} handle=\hyperlink{namespacevs_1_1net_a022e70e88d4dc482408183296dc49ab5}{I\-N\-V\-A\-L\-I\-D\-\_\-\-S\-O\-C\-K\-E\-T\-\_\-\-H\-A\-N\-D\-L\-E})}\label{classvs_1_1net_1_1_socket_handle_a375fb61b83b114271358255a0acc8afb}

\begin{DoxyCompactList}\small\item\em Explicit constructor. \end{DoxyCompactList}\item 
\hypertarget{classvs_1_1net_1_1_socket_handle_aae6c1f454ff5037f0914aff5a275d77d}{\hyperlink{classvs_1_1net_1_1_socket_handle_aae6c1f454ff5037f0914aff5a275d77d}{$\sim$\-Socket\-Handle} ()}\label{classvs_1_1net_1_1_socket_handle_aae6c1f454ff5037f0914aff5a275d77d}

\begin{DoxyCompactList}\small\item\em Destructor. \end{DoxyCompactList}\item 
\hypertarget{classvs_1_1net_1_1_socket_handle_a2ba945d23b7a6e2fe73b80d4c63cb81e}{bool \hyperlink{classvs_1_1net_1_1_socket_handle_a2ba945d23b7a6e2fe73b80d4c63cb81e}{Attach} (\hyperlink{namespacevs_1_1net_a8cd20dff70902b20f734a7f958cf99b6}{S\-O\-C\-K\-E\-T\-\_\-\-H\-A\-N\-D\-L\-E} handle=\hyperlink{namespacevs_1_1net_a022e70e88d4dc482408183296dc49ab5}{I\-N\-V\-A\-L\-I\-D\-\_\-\-S\-O\-C\-K\-E\-T\-\_\-\-H\-A\-N\-D\-L\-E})}\label{classvs_1_1net_1_1_socket_handle_a2ba945d23b7a6e2fe73b80d4c63cb81e}

\begin{DoxyCompactList}\small\item\em Attach a socket handle. \end{DoxyCompactList}\item 
\hypertarget{classvs_1_1net_1_1_socket_handle_a92867f8656aa8a41ad95b572e23e9d65}{\hyperlink{namespacevs_1_1net_a8cd20dff70902b20f734a7f958cf99b6}{S\-O\-C\-K\-E\-T\-\_\-\-H\-A\-N\-D\-L\-E} \hyperlink{classvs_1_1net_1_1_socket_handle_a92867f8656aa8a41ad95b572e23e9d65}{Detach} ()}\label{classvs_1_1net_1_1_socket_handle_a92867f8656aa8a41ad95b572e23e9d65}

\begin{DoxyCompactList}\small\item\em Detach a socket handle, and become invalid state. \end{DoxyCompactList}\item 
\hypertarget{classvs_1_1net_1_1_socket_handle_a4adfab1de1ad1adae494b7cc5011a81d}{\hyperlink{namespacevs_1_1net_a8cd20dff70902b20f734a7f958cf99b6}{S\-O\-C\-K\-E\-T\-\_\-\-H\-A\-N\-D\-L\-E} \hyperlink{classvs_1_1net_1_1_socket_handle_a4adfab1de1ad1adae494b7cc5011a81d}{Get\-Handle} () const }\label{classvs_1_1net_1_1_socket_handle_a4adfab1de1ad1adae494b7cc5011a81d}

\begin{DoxyCompactList}\small\item\em Get the underlying socket handle. \end{DoxyCompactList}\item 
\hypertarget{classvs_1_1net_1_1_socket_handle_a809968bd46a9adba3b380864d2194f58}{bool \hyperlink{classvs_1_1net_1_1_socket_handle_a809968bd46a9adba3b380864d2194f58}{Is\-Valid} () const }\label{classvs_1_1net_1_1_socket_handle_a809968bd46a9adba3b380864d2194f58}

\begin{DoxyCompactList}\small\item\em Get the state of the socket handle. \end{DoxyCompactList}\item 
\hypertarget{classvs_1_1net_1_1_socket_handle_a31c902c9aa06f9a92c367f2ef31b857f}{\hyperlink{classvs_1_1net_1_1_socket_handle_a31c902c9aa06f9a92c367f2ef31b857f}{operator S\-O\-C\-K\-E\-T\-\_\-\-H\-A\-N\-D\-L\-E} () const }\label{classvs_1_1net_1_1_socket_handle_a31c902c9aa06f9a92c367f2ef31b857f}

\begin{DoxyCompactList}\small\item\em Convert to the underlying socket handle. \end{DoxyCompactList}\item 
\hypertarget{classvs_1_1net_1_1_socket_handle_a79d2861b1d7e818acc6c1b3da4f58239}{void \hyperlink{classvs_1_1net_1_1_socket_handle_a79d2861b1d7e818acc6c1b3da4f58239}{Close} ()}\label{classvs_1_1net_1_1_socket_handle_a79d2861b1d7e818acc6c1b3da4f58239}

\begin{DoxyCompactList}\small\item\em Close socket handle. \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
Base class for T\-C\-P/\-U\-D\-P stream. This class encapsulates the underlying socket. 

The documentation for this class was generated from the following file\-:\begin{DoxyCompactItemize}
\item 
\hyperlink{_socket_handle_8h}{Socket\-Handle.\-h}\end{DoxyCompactItemize}
